package com.alex.game.framework
{
	public class BasicGroup extends BasicItem
	{
		private var item_list:Array = new Array();
		
		public function create():void
		{
			
		}
		public function destroy():void
		{
			for each(var basicItem:BasicItem in this.item_list)
			{
				basicItem.destroy();
				this.removeChild(basicItem);
			}
			
			this.item_list = null;
		}
		public function update():void
		{
			for each(var basicItem:BasicItem in this.item_list)
			{
				basicItem.update();
			}
		}
		public function add(item:BasicItem):void
		{
			this.item_list.push(item_list);
			this.addChild(item);
		}
	}
}